package com.netty.server.processor.up;

/**
 * @author: 王霄
 * @date: 2022/2/18 19:04
 */
public class CmdContext {
    private static final ThreadLocal<Long> cmdIdMap = new ThreadLocal<>();

    public static void set(long cmdId) {
        cmdIdMap.set(cmdId);
    }

    public static long get() {
        return cmdIdMap.get();
    }

    public static void remove() {
        cmdIdMap.remove();
    }
}
